package com.woniu.ly.manageassembly.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.ly.model.model.UserOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserOrderMapper extends BaseMapper<UserOrder> {
    @Select("SELECT user_order_id,user_order_price,user_id,tour_id,user_order_time FROM `t_user_order` WHERE tour_id=#{tourId} and tour_genre = #{tourGenre}")
    List<UserOrder> getUserOrders(@Param("tourId") int tourId,@Param("tourGenre") String tourGenre);
}
